package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.TCategories;
import com.tmeone.erpone.mapper.TCategoriesMapper;
import com.tmeone.erpone.service.ITCategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TCategoriesServiceImpl extends ServiceImpl<TCategoriesMapper, TCategories> implements ITCategoriesService {

    @Autowired
    TCategoriesMapper tCategoriesMapper;

    //查询所有商品类别
    @Override
    public List<TCategories> findAllTCategories() {
        return tCategoriesMapper.selectAllTCategories();
    }
}
